#include <iostream>

using namespace std;

bool prime(int x){
	if(x == 1)	return false;
	if(x == 2 || x == 3)	return true;	
	for(int i = 2; i * i <= x; i++){
		if(x % i == 0)	return false;
	}
	return true;
}

int main(){
	int n;
	cin >> n;
	if( prime(n - 4) ){
		cout << 2 << " " << 2 << " " << n - 4 << endl;
		return 0;
	}
	
	return 0;
}